/*
 * @Author: mayijun
 * @Date: 2022-08-09 18:35:40
 * @LastEditors: mayijun
 * @LastEditTime: 2022-08-09 18:35:49
 */
// 指标开发
import { RouteRecordRaw } from 'vue-router';
import * as RouteNames from '../consts';

const routes: RouteRecordRaw[] = [
    {
        path: '/approval',
        component: () => import('@/layout/base-layout.vue'),
        redirect: '/approval/dealwith/my-created',
        meta: {title: '工作台'},
        children: [
            {
                path: 'dealwith/my-created',
                name: RouteNames.ROUTER_APPROVAL_CENTER.MyCreated,
                component: () => import('@/views/approvalCenter/myCreate/index.vue'),
                meta: { title: '我创建的' }
            },
            {
                path: 'dealwith/my-approval',
                name: RouteNames.ROUTER_APPROVAL_CENTER.MyApproval,
                component: () => import('@/views/approvalCenter/myApproval/index.vue'),
                meta: { title: '我审批的' }
            },
            {
                path: 'dealwith/my-created/detail/:id',
                name: RouteNames.ROUTER_APPROVAL_CENTER.CheckDetail,
                component: () => import('@/views/approvalCenter/myCreate/components/myCreatedDetail/index.vue'),
                meta: { title: '查看详情', isOverflowHidden: true }
            },
            {
                path: 'dealwith/my-approval/detail/:id',
                name: RouteNames.ROUTER_APPROVAL_CENTER.ApprovalDetail,
                component: () => import('@/views/approvalCenter/myApproval/components/myApprovalDetail/index.vue'),
                meta: { title: '查看详情', isOverflowHidden: true }
            },
        ]
    }
]


export default routes;